{extend name="AdminController/index" /}
{block name="main"}
<script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<div class="content-page">
    <div class="content">
        <h1>{$title}</h1>
<form action="{:url('update')}" method="post" enctype="multipart/form-data">
    <div class="form-group">
      <label for="disabledTextInput">ID(不可更改)</label>
      <input type="text" id="disabledTextInput" class="form-control" placeholder="UserName" name="aid" disabled value="{$data.id}">
      <input type="hidden" name="id" value="{$data.id}">
    </div>

    <div class="form-group">
        <label class="disabledTextInput">封面</label>
        <img src="/uploads/{$imgs}" width="200">
        <input type="file" class="btn btn-default" title="添加" name="cover" valur="{$data.cover}">
    </div>
    <div class="form-group">
        <label for="disabledTextInput">片名</label>
        <input type="text" id="disabledTextInput" class="form-control" placeholder="name" name="mname" value="{$data.mname}">
    </div>
    <div class="form-group">
        <label for="disabledTextInput">地区</label>
        <input type="text" id="disabledTextInput" class="form-control" placeholder="country" name="country" value="{$data.country}">
    </div>

    <div class="form-group">
        <label for="disabledTextInput">简介</label>
        <input type="text" id="disabledTextInput" class="form-control" placeholder="describe" name="describe" value="{$data.describe}">
    </div>
    <div class="form-group">
        <label for="disabledTextInput">上映时间</label>
        <input type="date" id="disabledTextInput" class="form-control" placeholder="year" name="myear" value="{$data.myear}">
    </div>
    <div class="form-group">
        <label for="disabledTextInput">片长</label>
        <input type="text" id="disabledTextInput" class="form-control" placeholder="time" name="mtime" value="{$data.mtime}">
    </div>
    <div class="form-group">
        <label for="disabledTextInput">导演</label>
        <input type="text" id="disabledTextInput" class="form-control" placeholder="director" name="director" value="{$data.director}">
    </div>
    <div class="form-group">
        <label class="control-label">类型</label>
        <select class="form-control" name="type">
            <option selected>{$data.type}</option>
            <option>剧情</option>
            <option>喜剧</option>
            <option>动作</option>
            <option>爱情</option>
            <option>科幻</option>
            <option>悬疑</option>
            <option>惊悚</option>
            <option>恐怖</option>
            <option>犯罪</option>
            <option>音乐</option>
            <option>歌舞</option>
            <option>传记</option>
            <option>战争</option>
            <option>奇幻</option>
            <option>冒险</option>
            <option>灾难</option>
            <option>武侠</option>
            <option>情色</option>
        </select>
    </div>
    
    <button type="submit" class="btn btn-success">提交</button>
</form>
    </div>
</div>


{/block}

